package com.itheima.advantagesup.common;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 封装分页查询结果
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PageBean<T> {

    private Integer count;//总数
    private Integer totalPages;//总页数
    private Integer pageSize;//每页数量
    private Integer currentPage;//当前页码
    private List<T> data;
}